<?php 
	$action = $this->arrParam['action'];
 	$lnkNew = $this->url(array('action'=>'add'));
 	$btnNew = $this->cmsButton($this->translate('Add'),$lnkNew,array('icon'=>'icon-32-add.png'));
 	
 	/*===============================================
	 * Start - HELP Button 
	 *===============================================*/
 	$lnkHelp = $this->url(array('action'=>'add'));
 	$btnHelp = $this->cmsButton($this->translate('Help'),$lnkHelp,array('icon'=>'icon-32-help.png'));
 	
 	/*===============================================
	 * Start - DELETE Button 
	 *===============================================*/
 	if($action == 'info'){
 		$lnkDelete = $this->url(array('action'=>'delete'));
 	}else{
 		$lnkDelete = $this->url(array('action'=>'delete','type'=>'multi'));
 	}
 	$options = array('type'=>'submitQuest','name'=>'appForm',
					 'notice'=>$this->translate('Are you sure you want to delete this item?'));
 	$btnDelete = $this->cmsButton($this->translate('Delete'),$lnkDelete,array('icon'=>'icon-32-delete.png'),$options);
 	
 	/*===============================================
	 * Start - ACTIVE Button 
	 *===============================================*/
 	$lnkActive = $this->url(array('action'=>'status','type'=>'multi','s'=>'active'));
 	$btnActive = $this->cmsButton($this->translate('Active'),$lnkActive,array('icon'=>'icon-32-active.png')
 									,array('type'=>'submit','name'=>'appForm')
 									);
 	
	/*===============================================
	 * Start - INACTIVE Button 
	 *===============================================*/ 									
 	$lnkInactive = $this->url(array('action'=>'status','type'=>'multi','s'=>'inactive'));
 	$btnInactive = $this->cmsButton($this->translate('Inactive'),$lnkInactive,array('icon'=>'icon-32-inactive.png')
 									,array('type'=>'submit','name'=>'appForm')
 									);
 	
	/*===============================================
	 * Start - SORT Button 
	 *===============================================*/
 	$lnkSort = $this->url(array('action'=>'sort'));
 	$btnSort = $this->cmsButton($this->translate('Sort'),$lnkSort,array('icon'=>'icon-32-sort.png'),
 								array('type'=>'submit','name'=>'appForm')
 								); 	
 								
	/*===============================================
	 * Start - EDIT Button 
	 *===============================================*/
 	$lnkEdit = $this->url(array('action'=>'edit'));
 	$btnEdit = $this->cmsButton($this->translate('Edit'),$lnkEdit,array('icon'=>'icon-32-edit.png'));
 	
 	/*===============================================
	 * Start - SAVE Button 
	 *===============================================*/
 	$lnkSave = $this->url(array('action'=>$action));
 	
 	$btnSave = $this->cmsButton($this->translate('Save'),$lnkSave,array('icon'=>'icon-32-save.png')
 									,array('type'=>'submit','name'=>'appForm'));
 									
	$lnkSaveClose = $this->url(array('action'=>$action,'type'=>'back'));
 	
 	$btnSaveClose = $this->cmsButton($this->translate('Save & close'),$lnkSaveClose,array('icon'=>'icon-32-save-close.png')
 												,array('type'=>'submit','name'=>'appForm')); 									
 	
 	/*===============================================
	 * Start - CANCEL & BACK Button 
	 *===============================================*/
 	$lnkCancel = $this->url(array(
 								'module'=>$this->arrParam['module'],
 								'controller'=>$this->arrParam['controller'],
 								'action'=>'index',
 								),null,true);
 	$btnCancel = $this->cmsButton($this->translate('Cancel'),$lnkCancel,array('icon'=>'icon-32-cancel.png'));
 	$btnBack = $this->cmsButton($this->translate('Back'),$lnkCancel,array('icon'=>'icon-32-back.png'));
 	
 	/*===============================================
	 * Start - BUTTON String
	 *===============================================*/
 	
 	switch ($action){
 		case 'add': $strButton =  $btnSave . ' ' . $btnSaveClose . ' ' .$btnCancel;
 					break;
 		
 		case 'edit': $strButton =  $btnSave . ' ' . $btnSaveClose . ' ' .$btnCancel;
 					break;
 					
 		case 'info': $strButton =  $btnDelete . ' ' . $btnEdit . ' ' . $btnBack;
 					break;
 					
 		default: $strButton =  $btnActive . $btnInactive . $btnNew . $btnDelete;
 	}
 
 	$this->strButton = '<ul>'  . $strButton . '</ul>';